<?php defined('SYSPATH') or die('No direct script access.');
 
class Model_Decors extends ORM {
	protected $_table_name = 'decors';

	public function get_for_category($category_id) {
		return DB::select()
			->from('decors')
			->where('category_id', '=', $category_id)
			->order_by('sort', 'DESC')
			->as_object()
			->execute();
	}
}